#include <stdio.h>
void swap(int *px,int *py){
	int sno = 0;
	sno = *px;
	*px = *py;
	*py = sno;
}
int main(){
	int a,b;
	scanf("%d %d",&a,&b);
	printf("%d %d\n",a,b);
	swap(&a,&b);
	printf("%d %d\n",a,b);
	return 0;
}
